/**
 * Created by ltx on 2017/5/23.
 */
$(function () {
    var lis=$(".navbar-nav li a ");
    for(var i=0;i<lis.length;i++){
        lis[i].onclick=function () {
            for(var j=0;j<lis.length;j++){
                lis[j].className="";
            }
            this.className="active";
        }
    }
});